/* 
 * File:   main_form.h
 * Author: dima
 *
 * Created on 14 Январь 2015 г., 15:14
 */

#ifndef _MAIN_FORM_H
#define	_MAIN_FORM_H
#include <QDialog>

namespace Ui {
    class main_form;
}
namespace ipd {
    class ipd_img;
}
class form_piecewise_linear_function;

class main_form : public QDialog {
    Q_OBJECT
public:
    main_form();
    virtual ~main_form();
private slots:
    void convert_image();
    void open_image();
    void save_image();
    void send_image(ipd::ipd_img &image);
private:
    void create_form_piecewise_linear_function(); //create form for class piecewise_linear_function
    void delete_form_piecewise_linear_function();//delete form class piecewise_linear_function
    void show_img(ipd::ipd_img &image); //show image
    ipd::ipd_img* img;
    Ui::main_form *widget;
    form_piecewise_linear_function *piecewise_linear_function;
};


#endif	/* _MAIN_FORM_H */
